local Event = class("Event")

function Event:ctor(name,data)
	self._name = name
    self._data = data
end

function Event:GetName()
    return self._name
end

function Event:GetData()
    return self._data
end

function Event:GetDataString()
	local d = self._data
	if nil==self._data then
		d = ""
	elseif "number" == type(self._data) then
		d = tostring(_data)
	elseif "table" == type(_data) then
		d = table.toString(_data)
	end
	return d
end

return Event
